﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Register.aspx.cs" Inherits="App.Register" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
     <title>上善若水 --不言、无为、自强不息</title>

    <link type="text/css" href="Styles/layout.css" rel="Stylesheet" />
    <link type="text/css" href="Styles/theme1.css" rel="Stylesheet" />
    <link type="text/css" href="Styles/style.css" rel="Stylesheet" />
    <link type="text/css" href="Styles/regstyle.css" rel="Stylesheet" />
    <script type="text/javascript" src="Scripts/jquery-1.4.1.min.js"></script>

    <script type="text/javascript">

        //校验用户名
        function checkUserName(obj) {
            var val;
            if (typeof (obj.value) == "undefined") {
                val = obj.val();
            }
            else {
                val = obj.value;
            }
            var reg = /^\w+$/;
            if ($.trim(val).length > 16 || $.trim(val).length < 6) {
                $("#userNameError").css("display", "block");
                $("#userNameReError").css("display", "none");
                return false;
            }
            else if (!reg.test(val)) {
                $("#userNameError").css("display", "block");
                $("#userNameReError").css("display", "none");
                return false;
            }
            else {
                var result = true;
                $("#userNameError").css("display", "none");
                $.ajax({
                    url: "JSPost/Check.aspx",
                    type: "POST",
                    async: false,
                    data: { "action": "checkUserName", "name": val },
                    success: function (isTrue, status) {
                        if (status == "success") {
                            if (isTrue == "True") {
                                $("#userNameReError").css("display", "none");
                                result = true;
                            }
                            else {
                                $("#userNameReError").css("display", "block");
                                result = false;
                            }
                        }
                    } 
                }
       );               
                return result;
            }

        }
        //校验密码
        function checkPassword(obj) {
            var val;
            if (typeof (obj.value) == "undefined") {
                val = obj.val();
            }
            else {
                val = obj.value;
            }
            var reg = /^\S+$/;
            if ($.trim(val).length > 16 || $.trim(val).length < 6) {
                $("#passstrong").css("display", "none");
                $("#passWordError").css("display", "block");
                return false;
            }
            else if (!reg.test(val)) {
                $("#passWeek").css("display", "none");
                $("#passMed").css("display", "none");
                $("#passStr").css("display", "none");

                $("#passstrong").css("display", "none");
                $("#passWordError").css("display", "block");
                return false;
            }
            else {
                $("#passWordError").css("display", "none");
                if ($("#txt_repPassword").val().length > 0) {
                    if (checkRePassword($("#txt_repPassword"))) {
                        return true;
                    }
                    else {
                        return false;
                    }
                }
                else {
                    return true;
                }

            }
        }
        //密码框获取焦点后隐藏密码错误信息
        function clearError(obj) {
            $("#passWordError").css("display", "none");
        }

        //获取密码强度
        function getPasswordStrength(H) {
            var D = (H.length);
            if (D > 5) {
                D = 5
            }
            var F = H.replace(/[0-9]/g, "");
            if (F.length == 0)
                return 30;
            var S = H.replace(/[a-z]/g, "");
            if (S.length == 0)
                return 30;
            var G = (H.length - F.length);
            if (G > 3) { G = 3 }
            var A = H.replace(/\W/g, "");
            var C = (H.length - A.length);
            if (C > 3) { C = 3 }
            var B = H.replace(/[A-Z]/g, "");
            if (B.length == 0)
                return 30;
            var I = (H.length - B.length);
            if (I > 3) { I = 3 }
            var E = ((D * 10) - 20) + (G * 10) + (C * 15) + (I * 10);
            if (E < 0) { E = 0 }
            if (E > 100) { E = 100 }
            return E
        }
        //校验密码强度
        function checkPasswordStrength(obj) {
            var val;
            if (typeof (obj.value) == "undefined") {
                val = obj.val();
            }
            else {
                val = obj.value;
            }
            if (val.length < 6 || val.length > 16) {
                $("#tdWeek").css("display", "none");
                $("#tdMed").css("display", "none");
                $("#tdStr").css("display", "none");


                $("#passWeek").css("display", "none");
                $("#passMed").css("display", "none");
                $("#passStr").css("display", "none");
                return;
            }
            $("#passstrong").css("display", "block");
            var strengthNum = getPasswordStrength(val);
            if (strengthNum > 0) {
                $("#tdWeek").css("display", "block");
                $("#passWeek").css("display", "block");

                $("#tdMed").css("display", "none");
                $("#tdStr").css("display", "none");

                $("#passMed").css("display", "none");
                $("#passStr").css("display", "none");
            }
            if (strengthNum > 50) {
                $("#passWeek").css("display", "none");
                $("#passStr").css("display", "none");

                $("#tdMed").css("display", "block");
                $("#passMed").css("display", "block");

                $("#tdStr").css("display", "none");
            }
            if (strengthNum > 80) {
                $("#passWeek").css("display", "none");
                $("#passMed").css("display", "none");

                $("#tdStr").css("display", "block");
                $("#passStr").css("display", "block");
            }
        }
        //校验密码是否一致
        function checkRePassword(obj) {
            var val;
            if (typeof (obj.value) == "undefined") {
                val = obj.val();
            }
            else {
                val = obj.value;
            }
            if ($("#txt_password").val() == val) {
                $("#passWordReError").css("display", "none");
                return true;
            }
            else {
                $("#passWordReError").css("display", "block");
                return false;
            }
        }
        //校验邮箱
        function checkMail(obj) {
            var val;
            if (typeof (obj.value) == "undefined") {
                val = obj.val();
            }
            else {
                val = obj.value;
            }
            var reg = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
            if (val.length < 1)//密码不能为空
            {
                $("#emailNullError").css("display", "block");
                $("#emailFormatError").css("display", "none");
                $("#emailReNameError").css("display", "none");
                return false;
            }
            else if (!reg.test(val))//邮箱格式有误
            {
                $("#emailNullError").css("display", "none");
                $("#emailFormatError").css("display", "block");
                $("#emailReNameError").css("display", "none");
                return false;
            }
            else//邮箱是否已被注册
            {
                var result = true;
                $("#emailNullError").css("display", "none");
                $("#emailFormatError").css("display", "none");
                $.ajax({
                    url: "JSPost/Check.aspx",
                    type: "POST",
                    async: false,
                    data: { "action": "checkEmail", "name": val },
                    success: function (isTrue, status) {
                        if (status == "success") {
                            if (isTrue == "True") {
                                $("#emailReNameError").css("display", "none");
                                result = true;
                            }
                            else {
                                $("#emailReNameError").css("display", "block");
                                result = false;
                            }
                        }
                    } 
                }
       );
                return result;
            }
        }
        //校验移动电话格式
        function checkP(obj) {
            var val;
            if (typeof (obj.value) == "undefined") {
                val = obj.val();
            }
            else {
                val = obj.value;
            }
            if (val.length == 0)//空手机号不验证
            {
                return true;
            }
            var reg = /^0?(13[0-9]|15[012356789]|18[0236789]|14[57])[0-9]{8}$/;
            //只校验手机号合法性
            if (val.length > 0 && !reg.test(val)) {
                $("#PhoneNumberNullError").css("display", "none");
                $("#PhoneNumberError").css("display", "block");
                $("#PhoneNumberExist").css("display", "none");
                return false;
            }
            //检验手机号的唯一性
            var result = true;
//            $("#PhoneNumberNullError").css("display", "none");
//            $("#PhoneNumberError").css("display", "none");
//            $.ajax({
//                url: "NewRegister.aspx",
//                type: "POST",
//                async: false,
//                data: { "action": "checkMobile", "mobilenum": val },
//                success: function (isTrue, status) {
//                    if (isTrue == "True") {
//                        result = true;
                        $("#PhoneNumberNullError").css("display", "none");
                        $("#PhoneNumberError").css("display", "none");
                        $("#PhoneNumberExist").css("display", "none");
//                    } else {
//                        result = false;
//                        $("#PhoneNumberExist").css("display", "block");
//                        $("#PhoneNumberNullError").css("display", "none");
//                        $("#PhoneNumberError").css("display", "none");
//                    }
//                }
//            });
            return result;
        }
        //校验移动电话
        function checkPhone(obj) {
            var val;
            if (typeof (obj.value) == "undefined") {
                val = obj.val();
            }
            else {
                val = obj.value;
            }
            if (val.length == 0)//空手机号不验证
            {
                return true;
            }
            if (!checkP($('#txt_PhoneNumber'))) {
                return false;
            }
            /*if(confirm("是否进行手机验证？")) 
            {
            wind = null;
            wind = new Qwindow();
            var obj = $("#divMoblie");
            obj.show();
            wind.setPos('200px','center').setSize(550,650).setContent('element',obj[0]).show();  
            $("#txt_MoblieNum").val(val);
            $("#btn_getyzm").html("获取验证码");
            obj.css({"color":"#404040","cursor":"pointer"});
            return true;
            }
            else{
            $("#mobile_val").val("-1");
            return false;
            }*/
        }
        //手机验证码弹框关闭
        function Close(objID) {
            wind.hide();
        }
//        var Timer;
//        var wait = 180;
//        //获取手机验证码
//        function getValidateCode(e) {
//            $("#btn_getyzm").unbind("click");
//            $("#txt_MoblieNum").attr("readonly", "readonly");
//            $(e).html("发送验证码中......");
//            $(e).css({ "color": "#aaa", "cursor": "wait" });
//            $.ajax({
//                url: "NewRegister.aspx",
//                type: "POST",
//                async: false,
//                data: { "action": "getValidateCode", "mobilenum": $("#txt_MoblieNum").val() },
//                success: function (isHasVal) {
//                    if (isHasVal != 0) {
//                        //              CountDown(); 
//                        $("#mobile_val").attr("name", isHasVal)
//                        Timer = setInterval("CountDown()", 1000);
//                    } else {
//                        alert("获取验证码失败.");
//                    }
//                }
//            });
//        }

//        function CountDown() {
//            var obj = $("#btn_getyzm");
//            if (wait == 0) {
//                //obj.removeAttr("disable");
//                obj.html("重新获取验证码");
//                obj.css({ "color": "#404040", "cursor": "pointer" });
//                obj.bind("click", function () { getValidateCode(this); });
//                clearInterval(Timer);
//                wait = 180;
//            } else {
//                obj.css({ "color": "#aaa", "cursor": "wait" });
//                obj.html(wait + "秒后重新获取验证码");
//                wait--;

//                //      setTimeOut("CountDown()",1000);
//            }
//        }

        //验证手机验证码
//        function checkValidateCode() {
//            var val = $("#txt_ValidateCode").val();
//            if (val.length < 1)//密码不能为空
//            {
//                alert("请输入验证码！");
//                return false;
//            }

//            $.ajax({
//                url: "",
//                type: "POST",
//                async: false,
//                data: { "action": "checkValidateCode", "ValidateId": $("#mobile_val").attr("name"), "ValidateCode": $("#txt_ValidateCode").val(), "mobilenum": $("#txt_MoblieNum").val() },
//                success: function (isTrue) {
//                    if (isTrue == "True") {
//                        $("#mobile_val").val("1");
//                        alert("恭喜你手机号验证成功！");
//                        wind.hide();
//                        return true;
//                    } else {
//                        $("#mobile_val").val("-1");
//                        alert("手机号验证失败！");
//                        return false;
//                    }
//                }
//            });
//        }

        //显示相应的验证码错误信息
        function checkvalidateCode(num) {
            if (num == "1")//验证码为空
            {
                $("#validateCodeNullError").css("display", "block");
                $("#validateCodeError").css("display", "none");
                $("#validateCodeReTry").css("display", "none");
            }
            else if (num == "2")//验证码失效
            {
                $("#validateCodeNullError").css("display", "none");
                $("#validateCodeError").css("display", "none");
                $("#validateCodeReTry").css("display", "block");
            }
            else//验证码错误
            {
                $("#validateCodeNullError").css("display", "none");
                $("#validateCodeError").css("display", "block");
                $("#validateCodeReTry").css("display", "none");
            }
        }
        //提交整体校验
        var check = true;
        function checkAll() {
            if (check == false)
                return false;
            if (!checkUserName($("#txt_userName"))) {
                return false;
            }
            if (!checkMail($("#txt_email"))) {
                return false;
            }
            if (!checkPassword($("#txt_password"))) {
                return false;
            }
            if (!checkRePassword($("#txt_repPassword"))) {
                return false;
            }
//            if ($.trim($("#txt_IdNum").val()).length == 0) {
//                $("#IdNumErr").css("display", "block");
//                return false;
//            }
//            else {
//                $("#IdNumErr").css("display", "none");
//            }
//            if ($.trim($("#file").val()).length == 0) {
//                $("#IdImgErr").css("display", "block");
//                return false;
//            }
//            else {
//                $("#IdImgErr").css("display", "none");
//            }
            if (!checkP($("#txt_PhoneNumber"))) {
                return false;
            }
            if ($("#cb").attr("checked") == true) {
                $("#agrementError").css("display", "none");
            }
            else {
                $("#agrementError").css("display", "block");
                return false;
            }
            check = false;
            return true;
        }

        //打开新窗口
        function openWindow(inurl) {
            var la = $("#hid_languageValue").val();
            var url = "";
            if (inurl === "CommunityTerms.htm") {

                url = "Agreement/TermsConditions_";
            } else {
                url = "Agreement/PrivacyPolicy_";
            }
            url = url + la + ".aspx";
            window.open(url, "_blank");
        }

        $(function () {
            $("#ddlLanguage_arrow").click(
        function () {
            if ($("#select_list").css("display") == "none") {
                $("#select_list").show();
            } else {
                $("#select_list").hide();
            }

        }
    );

            $("#select_list").mouseleave(function () {
                $(this).hide();
            });

            if ($.browser.msie && ($.browser.version == "6.0")) {
                $("#select_list").css({ "width": '128px', 'float': 'left' });
                $("#select_list a").hover(
        function () { $(this).css({ "background-color": "#f2fafc", "color": "#53a1bb" }); },
        function () { $(this).css({ "background-color": "#fff", "color": "#9d9d9d" }); }
        );
            }

            $("#select_list a:last").css("border-bottom", "0px");
            $("#select_list a").bind("click", function () {
                var lc = $(this).find("input[type=hidden]").val();

                var href_val = window.location.href;
                var list_v0 = href_val.split("LC=");
                if (href_val.indexOf("?") > 0) {
                    if (list_v0[1]) {
                        window.location.href = list_v0[0] + "LC=" + lc;
                    } else {
                        window.location.href = href_val + "&LC=" + lc;
                    }
                } else {
                    if (list_v0[1]) {
                        window.location.href = list_v0[0] + "LC=" + lc;
                    } else {
                        window.location.href = href_val + "?LC=" + lc;
                    }
                }

            });            

            $('#btn_getyzm').bind('click', function () {
                getValidateCode(this);
            });
        });   

</script>
</head>
<body>
    <form id="form1" runat="server">
        <!--背景图-->
        <div class="bjtu">
        </div>
        <!--背景图-->
        <div id="page">
            <div class="main">
                <!--导航-->
                <!--内容-->
                <div class="box">
                    <span class="tl"></span>
                    <div class="tc">
                    </div>
                    <span class="tr"></span>
                    <!--cc-->
                    <div class="cc">
                        <!--头部-->
                        <div class="top">
                            <div id="logo" style="">
                                <a id="a_logotu" runat="server" class="logotu"></a><span runat="server" id="span_info"
                                    style="vertical-align: middle; _margin-top: 3px;">
                                   注册
                                </span>
                            </div>                            
                        </div>
                        <div class="reg_all" id="divRegister" runat="server">
                            <div class="reg_title">
                                <div class="txt">
                                    基本信息
                                </div>
                            </div>
                            <div class="reg_con">
                                <ul class="reglist">
                                    <li class="blank15"></li>
                                   <li>
                                        <div class="reg_column reg_column_01">
                                            <label>
                                                用户名
                                                ：</label>
                                        </div>
                                        <div class="reg_column reg_column_01">
                                            <%--<input id="inputEmail" type="text" value="" maxlength="64" autocomplete="off" name="username">--%>
                                            <asp:TextBox runat="server" ID="txt_userName" MaxLength="16" autocomplete="off" onblur="checkUserName(this)"></asp:TextBox>
                                        </div>
                                        <div class="reg_column reg_column_01">
                                            <span id="userNameReError" style="display: none;"><span class="error">
                                                <img src="images/regerror.gif" /></span> <span class="errortxt">
                                                    用户名已注册，请重新输入
                                                </span></span><span id="userNameError" style="display: none;"><span class="error">
                                                    <img src="images/regerror.gif" /></span> <span class="errortxt">
                                                        用户名输入不合法
                                                    </span></span>
                                        </div>
                                    </li>
                                    <li>
                                        <div class="reg_column reg_column_01">
                                            <label>
                                                &nbsp;</label>
                                        </div>
                                        <div class="reg_column reg_column_02">
                                            <div class="txtinfo">
                                                6-16位之内，请用字母、数字、下划线。
                                            </div>
                                        </div>
                                    </li>                                   
                                    <li>
                                        <div class="reg_column reg_column_01">
                                            <label>
                                                密码：</label>
                                        </div>
                                        <div class="reg_column reg_column_01">
                                            <asp:TextBox runat="server" ID="txt_password" onfocus="clearError(this);" TextMode="Password"
                                                MaxLength="16" onblur="checkPassword(this);" onkeyup="checkPasswordStrength(this);"
                                                autocomplete="off"></asp:TextBox><font color="red"> * </font>
                                        </div>
                                        <div class="reg_column reg_column_01">
                                            <table id="passstrong">
                                                <tr>
                                                    <td class="purple" id="tdWeek">
                                                    </td>
                                                    <td class="darkpurple" id="tdMed">
                                                    </td>
                                                    <td class="red" id="tdStr">
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                        <div class="reg_column reg_column_01" style="display:none">
                                            <span class="errortxt" id="passWeek" style="display: none">
                                               弱
                                            </span><span class="errortxt" id="passMed" style="display: none">
                                               中
                                            </span><span class="errortxt" id="passStr" style="display: none">
                                                强
                                            </span><span id="passWordError" style="display: none"><span class="error">
                                                <img src="images/regerror.gif" /></span> <span class="errortxt">
                                                    密码输入不合法
                                                </span></span>
                                        </div>
                                    </li>
                                    <li>
                                        <div class="reg_column reg_column_01">
                                            <label>
                                                &nbsp;</label>
                                        </div>
                                        <div class="reg_column reg_column_02">
                                            <div class="txtinfo">
                                                6-16位字符（字母、数字、符号），区分大小分
                                            </div>
                                        </div>
                                    </li>
                                    <li>
                                        <div class="reg_column reg_column_01">
                                            <label>
                                                确认密码：</label>
                                        </div>
                                        <div class="reg_column reg_column_01">
                                            <asp:TextBox runat="server" ID="txt_repPassword" MaxLength="16" autocomplete="off"
                                                onblur="checkRePassword(this);" TextMode="Password"></asp:TextBox><font color="red">
                                                    * </font>
                                        </div>
                                        <div class="reg_column reg_column_01">
                                            <span id="passWordReError" style="display: none"><span class="error">
                                                <img src="images/regerror.gif" /></span> <span class="errortxt">
                                                    两次密码输入不一致
                                                </span></span>
                                        </div>
                                    </li>
                                     <li>
                                        <div class="reg_column reg_column_01">
                                            <label>                                                
                                                邮箱：</label>
                                        </div>
                                        <div class="reg_column reg_column_01">
                                            <asp:TextBox runat="server" ID="txt_email" MaxLength="64" onblur="checkMail(this);"
                                                autocomplete="off"></asp:TextBox><font color="red"> * </font>
                                        </div>
                                        <div class="reg_column reg_column_01">
                                            <span id="emailReNameError" style="display: none"><span class="error">
                                                <img src="images/regerror.gif" /></span> <span class="errortxt">
                                                    此邮箱已被注册
                                                </span></span><span id="emailFormatError" style="display: none"><span class="error">
                                                    <img src="images/regerror.gif" /></span> <span class="errortxt">
                                                        邮箱格式不正确
                                                    </span></span><span id="emailNullError" style="display: none"><span class="error">
                                                        <img src="images/regerror.gif" /></span> <span class="errortxt">
                                                           邮箱不能为空
                                                        </span></span>
                                        </div>
                                    </li>
                                     <li>
                                        <div class="reg_column reg_column_01">
                                            <label>
                                                &nbsp;</label>
                                        </div>
                                        <div class="reg_column reg_column_02">
                                            <div class="txtinfo">
                                                请输入常用邮箱，将用来找回密码等
                                            </div>
                                        </div>
                                    </li>
                                    <li>
                                         <div class="reg_column reg_column_01">
                                            <label>                                                
                                                有效证件号码：</label>
                                        </div>
                                        <div class="reg_column reg_column_01">
                                            <asp:TextBox runat="server" ID="txt_IdNum" MaxLength="64"
                                                autocomplete="off"></asp:TextBox>
                                        </div>
                                        <div class="reg_column reg_column_01">
                                            <span id="IdNumErr" style="display: none"><span class="error">
                                                <img src="images/regerror.gif" /></span> <span class="errortxt">
                                                    有效证件号码不能为空
                                                </span></span>
                                        </div>
                                    </li>
                                    <li>
                                         <div class="reg_column reg_column_01">
                                            <label>                                                
                                                上传有效证件照：</label>
                                        </div>
                                        <div class="reg_column reg_column_01">
                                            <asp:FileUpload  ID="file" runat="server" />
                                        </div>
                                        <div class="reg_column reg_column_01">
                                            <span id="IdImgErr" style="display: none"><span class="error">
                                                <img src="images/regerror.gif" /></span> <span class="errortxt">
                                                    有效证件照不能为空
                                                </span></span>
                                        </div>
                                    </li>
                                   
                                    <li>
                                        <div class="reg_column reg_column_01">
                                            <label>
                                                手机号：</label>
                                        </div>
                                        <div class="reg_column reg_column_01">
                                            <asp:TextBox runat="server" ID="txt_PhoneNumber" MaxLength="64" onblur="checkPhone(this);"
                                                autocomplete="off"></asp:TextBox>
                                        </div>
                                        <div class="reg_column reg_column_01">
                                            <span id="PhoneNumberError" style="display: none"><span class="error">
                                                <img src="images/regerror.gif" /></span> <span class="errortxt">
                                                    请输入正确的移动电话
                                                </span></span><span id="PhoneNumberNullError" style="display: none"><span class="error">
                                                    <img src="images/regerror.gif" /></span> <span class="errortxt">
                                                        移动电话不能为空
                                                    </span></span><span id="PhoneNumberExist" style="display: none"><span class="error">
                                                        <img src="images/regerror.gif" /></span> <span class="errortxt">手机号已注册过，请重新输入！
                                                        </span></span>
                                        </div>
                                    </li>
                                </ul>
                            </div>
                            <div class="reg_con">
                                <ul class="reglist">
                                    <li>
                                        <div class="reg_column reg_column_03">
                                            <h3>
                                                填写验证码
                                            </h3>
                                        </div>
                                    </li>
                                    <li class="blank15"></li>
                                    <li>
                                        <div class="reg_column reg_column_01">
                                            <label>
                                                验证码：</label>
                                        </div>
                                        <div class="reg_column reg_column_01">
                                            <asp:TextBox ID="txt_validateCode" runat="server" autocomplete="off"></asp:TextBox>
                                        </div>
                                        <div class="reg_column reg_column_01">
                                            <span><span class="regyzm">
                                                <img id="valiImg" src="ValidateCode.aspx" /></span> <a href="javascript:document.getElementById('valiImg').src='ValidateCode.aspx?'+new Date;void(0);">
                                                    看不清？换一张！
                                                </a></span><span id="validateCodeNullError" style="display: none"><span class="error">
                                                    <img src="images/regerror.gif" /></span> <span class="errortxt">
                                                        请输入验证码
                                                    </span></span><span id="validateCodeReTry" style="display: none"><span class="error">
                                                        <img src="images/regerror.gif" /></span> <span class="errortxt">
                                                            验证码已经过期，请刷新验证码后重试
                                                        </span></span><span id="validateCodeError" style="display: none"><span class="error">
                                                            <img src="images/regerror.gif" /></span> <span class="errortxt">
                                                                验证码有误
                                                            </span></span>
                                        </div>
                                    </li>
                                    <li>
                                        <div class="reg_column reg_column_03">
                                            <label class="reg_label">
                                                <input type="checkbox" name="cb" id="cb" class="reg_cb" runat="server" style="border: none;" />
                                            </label>
                                        </div>
                                        <div class="reg_column reg_column_04">
                                            <span class="tipinfo" style="margin: 0;"><strong>
                                                我已经看过并同意
                                                <a  href="Agreement/Reg.htm" target="_blank">
                                                    注册协议
                                                </a>
                                                </strong></span><span id="agrementError" style="display: none"><span class="error">
                                                    <img src="images/regerror.gif" /></span> <span class="errortxt">
                                                        请阅读相关声明条款
                                                    </span></span>
                                        </div>
                                    </li>
                                </ul>
                            </div>
                            <asp:HiddenField ID="hfNation" runat="server" />
                            <asp:HiddenField ID="hfPro" runat="server" />
                            <asp:HiddenField ID="hfCity" runat="server" />                            
                            <%--<input type="button" name="button" value="" class="subbtn" />--%>
                            <asp:Button ID="btnSubmit" runat="server" CssClass="subbtn" OnClientClick="return checkAll();" Text="注册"
                                OnClick="Btn_OK_Click" />
                        </div>                        
                        <!--版权-->
                        <div class="footer">
                            <a href="mailTo:1123@123.com">
                                联系我们
                            </a>
                        </div>
                        <!--版权-->
                    </div>
                    <!--cc-->
                    <span class="bl"></span>
                    <div class="bc">
                        <asp:HiddenField ID="hfAid" runat="server" Value="0" />
                        <asp:HiddenField ID="hfPersonalId" runat="server" />
                    </div>
                    <span class="br"></span>
                </div>
                <!--box-->
            </div>
            <!--main-->
        </div>
        <!--page-->

        
        <asp:HiddenField ID="mobile_val" runat="server" />
    </form>
</body>
</html>
